package vn.com.bookstore.dao;

import java.util.List;

import vn.com.bookstore.domain.model.Book;
import vn.com.bookstore.domain.model.PagingInfo;
import vn.com.bookstore.domain.model.SearchResult;

public interface BookDao {
	void addNewBook(Book book);
	void editBook(Book book);
	List<Book> getTop10BookByCategory(String bookType);
	Book getBookById(int id);
	
	SearchResult<Book> getRelatedBook(int categoryId, int id);
	List<Book> getListBookByPublisher(int publisherId);
	SearchResult<Book> getBooks(PagingInfo pagingInfo, String keyword, String typeSearch, int publishId);
	SearchResult<Book> getBooksByBookTypeId(PagingInfo pagingInfo, int bookTypeId);
	SearchResult<Book> getBooksBykeyword(PagingInfo pagingInfo, String keyword);
	void deleteBook(int bookId);
	SearchResult<Book> getTop10BookOfTransaction(String role, int publisherId);
}
